<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {:token()}

    <div class="form-group">
        <label for="pid" class="control-label col-xs-12 col-sm-2">{:__('parent')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select name="row[pid]" class="selectpicker" required>
                <?php foreach ($parentdata as $item => $value): ?>
                    <option value="<?php echo $item; ?>" <?php if ($item == $row['pid']) { echo 'selected'; } ?>><?php echo $value; ?></option>
                <?php endforeach; ?>
            </select>
        </div>
    </div>


    <div class="form-group">
        <label for="name" class="control-label col-xs-12 col-sm-2">{:__('name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label for="index_link" class="control-label col-xs-12 col-sm-2">{:__('index_link')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="index_link" data-rule="required" class="form-control" name="row[index_link]" type="text" value="{$row.index_link|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label for="remark" class="control-label col-xs-12 col-sm-2">{:__('remark')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="remark" class="form-control" name="row[remark]" type="text" value="{$row.remark|htmlentities}">
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
